﻿using System;
using UnityEngine;

namespace Sizebox.CharacterEditor
{
	// Token: 0x02000244 RID: 580
	public class HairView : BaseSkeletonHandleView
	{
		// Token: 0x17000173 RID: 371
		// (get) Token: 0x06000C65 RID: 3173 RVA: 0x00064DB3 File Offset: 0x00062FB3
		public override string DataId
		{
			get
			{
				return "hair";
			}
		}

		// Token: 0x17000174 RID: 372
		// (get) Token: 0x06000C66 RID: 3174 RVA: 0x00064DBA File Offset: 0x00062FBA
		protected override string DATA_FILE_NAME
		{
			get
			{
				return "hairview.dat";
			}
		}

		// Token: 0x06000C67 RID: 3175 RVA: 0x00064DC4 File Offset: 0x00062FC4
		protected override void LoadDefaultKeys(CharacterEditor targetEditor)
		{
			base.Keys.Clear();
			Animator animator = targetEditor.Animator;
			if (!animator)
			{
				return;
			}
			Transform boneTransform = animator.GetBoneTransform(HumanBodyBones.Head);
			if (!boneTransform)
			{
				return;
			}
			EditBone[] componentsInChildren = boneTransform.GetComponentsInChildren<EditBone>();
			foreach (EditBone editBone in componentsInChildren)
			{
				base.Keys.Add(editBone.Key);
			}
		}
	}
}
